<script src="__INDEX__/js/jquery.min.js"></script>
<link rel="stylesheet" href="__PUBLIC__/layui/css/layui.css">
<script src="__PUBLIC__/layui/layui.all.js"></script>
<script src="https://res.wx.qq.com/open/js/jweixin-1.2.0.js "></script>
<script src="__INDEX__/js/help.js "></script>
<script>
	load_data();

	function load_data() {
		var index = layer.load(1, {
			shade: [0.1, '#fff'], //0.1透明度的白色背景
			time: 1.5 * 1000
		});
		$(".layui-layer-loading").css("left", "50%");
	}
	var gurl = "<?php if(isset($gurl)){echo $gurl;} ?>";
	if(!gurl) {
		gurl = window.location.href+"?tj_id={$Think.session.user_info.id}";
	}
	
	var title = "<?php if(isset($share_title)){echo $share_title;} ?>";
	if(!title) {
		title = "鸿运集团";
	}
	
	var desc = "<?php if(isset($share_content)){echo $share_content;} ?>";

	
	desc="鸿运集团,充值知名连锁酒店品牌" ;


	var imgUrl = "<?php if(isset($share_img)){echo $share_img;} ?>";
	if(!imgUrl) {
		imgUrl = "/public/logo.jpg";
	}
	
	var news = {
		"title": title,
		"desc": desc,
		"imgUrl": "http://" + document.domain + imgUrl,
		"link": gurl
	};
	share_set(news);

	function ChangeParam(name, value) {
		var url = window.location.href;
		var newUrl = "";
		var reg = new RegExp("(^|)" + name + "=([^&]*)(|$)");
		var tmp = name + "=" + value;
		if(url.match(reg) != null) {
			newUrl = url.replace(eval(reg), tmp);
		} else {
			if(url.match("[\?]")) {
				newUrl = url + "&" + tmp;
			} else {
				newUrl = url + "?" + tmp;
			}
		}
		return newUrl;
	}
</script>